/**
 ******************************************************************************
 * @file    it.c
 * @author  MCD Application Team
 * @brief   Main Interrupt Service Routines.
 *          This file provides template for all exceptions handler and
 *          peripherals interrupt service routine.
 ******************************************************************************
 */

/* Includes ------------------------------------------------------------------*/
#include "bsp.h"
#include "bsp_cpu_it.h"

/** @addtogroup
 * @{
 */
cpu_it_type cpu_it;

/**
 * @brief  This function handles USART1_IRQHandler exception.
 * @param  None
 * @retval None
 */
void USART1_IRQHandler(void)
{
  if (cpu_it.uart01)
    cpu_it.uart01();
}

/**
 * @brief  This function handles USART2_IRQHandler exception.
 * @param  None
 * @retval None
 */
void USART2_IRQHandler(void)
{
  if (cpu_it.uart02)
    cpu_it.uart02();
}

/**
 * @brief  This function handles USART3_IRQHandler exception.
 * @param  None
 * @retval None
 */
void USART3_IRQHandler(void)
{
  if (cpu_it.uart03)
    cpu_it.uart03();
}

/**
 * @brief  This function handles UART4_IRQHandler exception.
 * @param  None
 * @retval None
 */
void UART4_IRQHandler(void)
{
  if (cpu_it.uart04)
    cpu_it.uart04();
}

/**
 * @brief  This function handles UART4_IRQHandler exception.
 * @param  None
 * @retval None
 */
void UART5_IRQHandler(void)
{
  if (cpu_it.uart05)
    cpu_it.uart05();
}


/**
 * @brief  This function handles UART6_IRQHandler exception.
 * @param  None
 * @retval None
 */
void USART6_IRQHandler(void)
{
  if (cpu_it.uart06)
    cpu_it.uart06();
}

/**
 * @brief  This function handles UART7_IRQHandler exception.
 * @param  None
 * @retval None
 */
void UART7_IRQHandler(void)
{
  if (cpu_it.uart07)
    cpu_it.uart07();
}

/**
 * @brief  This function handles USART8_IRQHandler exception.
 * @param  None
 * @retval None
 */
void UART8_IRQHandler(void)
{
  if (cpu_it.uart08)
    cpu_it.uart08();
}
